/**
 * 基础模型
 */
export default class BaseEntity {
  /**
   * 主键
   * @type {number | null | undefined}
   */
  id

  /**
   * 创建时间
   * @type {number | null | undefined}
   */
  createTime

  /**
   * 更新时间
   * @type {number | null | undefined}
   */
  updateTime

  /**
   * @param baseEntity : BaseEntity
   */
  constructor(baseEntity) {
    if (baseEntity === undefined) {
      this.id = undefined
      this.createTime = undefined
      this.updateTime = undefined
    } else {
      this.id = baseEntity.id
      this.createTime = baseEntity.createTime
      this.updateTime = baseEntity.updateTime
    }
  }
}
